package handle

type Instances struct {
	Content []ContentItem `json:"content"`
}

type ContentItem struct {
	OpenId string `json:"openId"`
	Title  string `json:"title"`
}

type Token struct {
	AccessToken string `json:"access_token"`
}

type PassagewayData struct {
	PassagewayId string      `json:"passagewayId"`
	Time         string      `json:"time"`
	In           int         `json:"in"`
	Out          int         `json:"out"`
	Passing      interface{} `json:"passing"`
}

type InOutData struct {
	Content []PassagewayData `json:"content"`
}

type OpenId struct {
	OpenId string `json:"openId"`
}

type Passageway struct {
	PassagewayId  string   `json:"passagewayId"`
	DevicesOpenID []OpenId `json:"devices"`
}

type DetailContent struct {
	OpenId      string       `json:"openId"`
	Title       string       `json:"title"`
	Passageways []Passageway `json:"passageways"`
}

type Detail struct {
	Content DetailContent `json:"content"`
}
